package com.search.entity;

import java.util.List;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "search") // yml对象名一致
public class SearchConfig {

	private List<SearchConfigEntity> searchArray;// 检索分类数组，属性名和yml数组对象一致

	public List<SearchConfigEntity> getSearchArray() {
		return searchArray;
	}

	public void setSearchArray(List<SearchConfigEntity> searchArray) {
		this.searchArray = searchArray;
	}

	@Override
	public String toString() {
		return "SearchConfig [search2=" + searchArray + "]";
	}

}
